﻿using DevExpress.Xpo;
using Model.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class TS_StockDetail : BaseXPObjectClass
    {
        public TS_StockDetail(Session session) : base(session) { }

        public override void AfterConstruction() { base.AfterConstruction(); }

        B_Warehouse fWarehouseID;
        /// <summary>
        /// 仓库
        /// </summary>
        public B_Warehouse WarehouseID
        {
            get { return fWarehouseID; }
            set { SetPropertyValue<B_Warehouse>("WarehouseID", ref fWarehouseID, value); }
        }

        P_Product fProductID;
        /// <summary>
        /// 货品
        /// </summary>
        public P_Product ProductID
        {
            get { return fProductID; }
            set { SetPropertyValue<P_Product>("ProductID", ref fProductID, value); }
        }
        decimal fQuantity;
        /// <summary>
        /// 数量
        /// </summary>
        [DbType("decimal(18,2)")]
        public decimal Quantity
        {
            get { return fQuantity; }
            set { SetPropertyValue<decimal>("Quantity", ref fQuantity, value); }
        }
    }
}
